package com.lzymall.service;

import com.lzymall.common.ServiceResponse;
import com.lzymall.vo.CartVo;
import org.springframework.stereotype.Service;

/**
 * @Author: lizhenyao
 * @Desciption:
 */
public interface ICartService {

    ServiceResponse<CartVo> add(Integer userId, Integer count, Integer productId);

    ServiceResponse<CartVo> update(Integer userId, Integer count, Integer productId);

    ServiceResponse<CartVo> deleteProduct(Integer userId, String productIds);

    ServiceResponse<CartVo> list(Integer id);

    ServiceResponse<CartVo> selectOrUnSelectAll(Integer userId, Integer productId, Integer checked);

    ServiceResponse<Integer> getCartProductCount(Integer userId);
}
